<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<style>
body {
	margin: 0;
}

ul {
	height: 50px;
    list-style-type: none;
    margin: 0 0 20px;
    padding: 0;
	background-color: lightgray;
	box-shadow: 0 0 5px 0 gray;
}

li {
	width: 100px;
	height: 100%;
    float: left;
    text-align: center;
	user-select: none;
}

li:hover {
	border-bottom: 2px solid black;
}

a {
    text-decoration: none;
}
</style>
</head>
<body>
	<ul>
		<li><p><a href="index.jsp">首页</a></p></li>
		<li onclick="logout()"><p>注销</p></li>
	</ul>
</body>
<script>
	function logout() {
		resp = confirm("确定要注销吗")
		if (resp) {
			location.href = "/test_02/logout";
		}
	}
</script>
</html>